import request from '@/utils/request'

// 获取用户统计数据
export function getUserStats() {
  return request({
    url: '/api/dashboard/user-stats',
    method: 'get'
  })
}

// 获取商城订单统计数据
export function getShopOrderStats() {
  return request({
    url: '/api/dashboard/shop-order-stats',
    method: 'get'
  })
}

// 获取充值订单统计数据
export function getRechargeOrderStats() {
  return request({
    url: '/api/dashboard/recharge-order-stats',
    method: 'get'
  })
}

// 获取用户增长趋势数据
export function getUserTrendData(params) {
  return request({
    url: '/api/dashboard/user-trend',
    method: 'get',
    params
  })
}

// 获取订单金额对比数据
export function getOrderComparisonData(params) {
  return request({
    url: '/api/dashboard/order-comparison',
    method: 'get',
    params
  })
}

// 获取详细数据表格
export function getDetailTableData(params) {
  return request({
    url: '/api/dashboard/detail-table',
    method: 'get',
    params
  })
}

// 获取实时数据
export function getRealTimeData() {
  return request({
    url: '/api/dashboard/real-time',
    method: 'get'
  })
}
